//
// Created by zhanghuaming on 2025/5/30.
//

#include "../include/Device.h"

Device::Device() {
    this->name = "";
    this->sn = "";
    this->id = 0;
    this->price = 0;
};

Device::Device(std::string name, std::string sn, int id, double price) {
    this->name = name;
    this->sn = sn;
    this->id = id;
    this->price = price;
}

void Device::setName(std::string name) {
    this->name = name;
}

std::string Device::getName() {
    return this->name;
}
